package com.wulwu.distributedoid;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description
 * @Author wuxb
 * @Date 2022/8/25 16:23
 */
@RestController
public class SnowFlakeController {

    @Autowired
    private SnowFlakeUtil snowFlakeUtil;

    @GetMapping(value = "/createId")
    public String createId() {
        return String.valueOf(snowFlakeUtil.nextId());
    }

}
